<?php
	foreach ($lines as $line) {
		$csv->addRow($line);
	}
	echo $csv->render($fileName);  
?>